﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Lib.Utility;
using Module.BusinessLogic;
using Module.EntitiesInfo;

namespace Web
{
    public partial class VideoClipDetails : System.Web.UI.Page
    {        
        protected string Title;
        protected string Body;
        protected string FileVideo;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int VideoId;
                VideoId = Request.QueryString["Id"] == null ? 0 : ConvertUtility.ToInt32(Request.QueryString["Id"]);
                if (!IsPostBack)
                {
                    CMSVideoClipInfo info = CMSVideoClipBL.GetInfoOutSite(2, VideoId.ToString(), "");
                    if (info != null)
                    {
                        Title = info.Title;
                        Body = info.Body;
                        FileVideo = info.UrlVideo;
                    }
                }
            }
            catch (Exception)
            {
            }
        }
    }
}